grid: Remove unnecessary NULL checks
authorTimm Bäder <mail@baedert.org>
Fri, 28 Apr 2017 09:25:21 +0000 (11:25 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 28 Apr 2017 09:27:09 +0000 (11:27 +0200)
The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.

gtk/gtkgrid.c

index 66899650e6c9eff2c206a5be6f96247d0e73dae5..7079991081b7eab1c9e7062d10cfcb98eb4aa9b9 100644 (file)
@@ -1470,11 +1470,8 @@ gtk_grid_get_size_for_size (GtkGrid        *grid,
   GtkGridLines *lines;
   gint min_size, nat_size;
 
-  if (minimum)
-    *minimum = 0;
-
-  if (natural)
-    *natural = 0;
+  *minimum = 0;
+  *natural = 0;
 
   if (minimum_baseline)
     *minimum_baseline = -1;